package com.hzp.lolnews.app;

import android.app.Application;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.hzp.lolnews.utils.OkHttpClientUtils;
import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;

import cn.bmob.v3.Bmob;

/**
 * Created by Administrator on 2016/10/19 0019.
 */
public class MyApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        initOkHttp();
        Fresco.initialize(this);
        //初始化
        UMShareAPI.get(this);

        //AppID,AppSecret
        PlatformConfig.setWeixin("wx967daebe835fbeac", "5bb696d9ccd75a38c8a0bfe0675559b3");
        PlatformConfig.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad");
        PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba");
        //新浪微博的回调地址
        Config.REDIRECT_URL = "www.baidu.com";
        Bmob.initialize(this, "fc0a5d2977a9b96453b6c033a6b3bed0");
    }

    private void initOkHttp() {
        OkHttpClientUtils.getOkHttpClientUtils(this);
        OkHttpClientUtils.getOkHttpClient();
    }

}
